<?php
/*@author Gabriel Bronzatti Moro*/
Class Conection {

    private $mysqli;
    private $endereco;
    private $user;
    private $pass;
    private $dataBase;
    private $porta;

    public function __construct() {
        $this->endereco = "localhost";
        $this->user = "root";
        $this->pass = "123";
        $this->dataBase = "redeSocial";
        $this->porta = "8080";

        $this->mysqli = new mysqli($this->endereco, $this->user, $this->pass, $this->dataBase, $this->porta, "");
    }

    public function getMysqli() {
        return $this->mysqli;
    }
    
    public function encerrarConexao(){
       return $this->mysqli->close();
    }

}